package contracts.settings

import org.springframework.cloud.contract.spec.Contract

Contract.make {
    request {
        method "GET"
        url "/api/settings"
    }
    response {
        status 200
        body("""
            {
                "appContextPath":"~"
            }
        """)
        bodyMatchers {
            jsonPath('$.appContextPath', byType())
        }
        headers {
            header("Content-Type", "application/json;charset=UTF-8")
        }
    }
}
